import router from './router'
import axios from 'axios'
// 路由收尾
router.beforeEach(async (to, from, next) => {
  let idTarget = /target/.test(to.path)
  // 如果是锚链接 就不进行跳转
  // console.log('to',to)
  // console.log('from',from)
  console.log()
  console.log(to.path)
  if(to.path ==='/'){
    next('/login')
  }else{
     next()
  }
})
